import { GTabBar } from "../../../../com/mui/controls/GTabBar";
import { GBoxDirection } from "../../../../com/mui/containers/globalVariable/GBoxDirection";
//class GTabBar2
    
    export  class GTabBar2 extends GTabBar
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ resetPosition(): void
        {
            var loc1=0;
            var loc4=null;
            var loc2=0;
            var loc3=this.numChildren;
            if (this.direction != GBoxDirection.VERTICAL) 
            {
                if (this.direction == GBoxDirection.HORIZONTAL) 
                {
                    loc1 = 0;
                    while (loc1 < loc3) 
                    {
                        (loc4 = this.getChildAt(loc1)).x = (horizontalGap + loc4.width) * loc1;
                        loc4.y = 0;
                        ++loc1;
                    }
                }
            }
            else 
            {
                loc1 = 0;
                while (loc1 < loc3) 
                {
                    (loc4 = this.getChildAt(loc1)).x = 0;
                    loc4.y = (loc4.height + verticalGap) * loc1;
                    ++loc1;
                }
            }
            return;
        }
    }
